﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace Maticsoft.Web.CERTI
{
    public partial class Show : Page
    {        
        		public string strid=""; 
		protected void Page_Load(object sender, EventArgs e)
		{

            if (!IsPostBack)
            {

                if (Session["u"] == null)
                {
                    Page.ClientScript.RegisterStartupScript(this.GetType(), "", "if(top){top.location.href='../Login.aspx'}else{location.href='../Login.aspx'};", true);
                }

            }

			if (!Page.IsPostBack)
			{
				//#warning 代码生成提示：显示页面,请检查确认该语句是否正确
                object ZSH = Request.QueryString["ZSH"];
                if(ZSH!=null&&ZSH.ToString().Length>0)
                {
                    ShowInfo(ZSH.ToString().Trim());
                }
				
			}
		}
		
	private void ShowInfo(string zsh)
	{
		Maticsoft.BLL.CERTI bll=new Maticsoft.BLL.CERTI();
		Maticsoft.Model.CERTI model=bll.GetModel(zsh);
		this.lblZSH.Text=model.ZSH;
		this.lblJCS.Text=model.JCS;
		this.lblPM.Text=model.PM;
		this.lblJJZ.Text=model.JJZ;
		this.lblBM.Text=model.BM;
		this.lblBZ.Text=model.BZ;
		this.lblCREATEDATE.Text=model.CREATEDATE;
		this.lblTEMP.Text=model.TEMP;

	}


    }
}
